package com.shuo.dsa.model;

/**
 * Created by shuoGG on 2018/9/27 0027
 */
public class TreeNode {
    public TreeNode left = null;
    public TreeNode right = null;
    public int value;

    public TreeNode(int value) {
        this.value = value;
    }

    public TreeNode(TreeNode left, TreeNode right, int value) {
        this.left = left;
        this.right = right;
        this.value = value;
    }

    public TreeNode() {
    }

    @Override
    public String toString() {
        return "TreeNode{" +
                "left=" + left +
                ", right=" + right +
                ", value=" + value +
                '}';
    }
}
